#ifndef __CEDATABASE_INCLUDE__
#define __CEDATABASE_INCLUDE__

extern "C" {
#include <Windbase_edb.h>
};

class CCeDataBase {
public:
	CCeDataBase();
	~CCeDataBase();

	bool Open(LPCTSTR pVolumeName, LPCTSTR pTableName);
	bool Close();

	DWORD GetFiledsCount();
	DWORD	GetFieldType(DWORD dwCol);
	LPCTSTR GetFieldName(DWORD dwCol);

	DWORD GetRecordCount();
	bool Goto(DWORD nIndex);
	LPCTSTR	GetFieldValue(DWORD dwCol);

private:
    CEGUID m_ceGuid;
	CEOID m_ceOid;
	HANDLE m_hDB;
};

#endif
